package cn.csq.design.structural.adapter.clazz;

import cn.csq.design.structural.adapter.MoviePlayer;

/**
 * @author csq
 * @date 2022/1/27 10:56:47
 */
public class MainTest {
    public static void main(String[] args) {

        MoviePlayer moviePlayer = new MoviePlayer();
        //创建
        JPMoviePlayerAdapter jpMoviePlayerAdapter = new JPMoviePlayerAdapter(moviePlayer);

        String play = jpMoviePlayerAdapter.play();
        System.out.println("play = " + play);
    }
}
